package atguigu.oop.jicheng;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

import org.checkerframework.common.reflection.qual.NewInstance;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IoUtil;

public abstract class ReportBuilder {

	public int needModel() {
		return 0;
	}
	
	public InputStream getModel() {
		return null;
	}
	
	public Object buildWorkBook(){
		int a = needModel();
		if(a == 1) {
			System.out.println(" 需要模板 ");
			InputStream model = getModel();
			System.out.println(model);
		}else {
			System.out.println(" 不需要模板 ");
		}
		exportReport();
        return null;
    }
	
    public abstract void exportReport();
	
}
